package com.cat3studios.tile.tiles;

import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.GL11;

import com.cat3studios.tile.graphics.Renderable;

public class TileMap implements Renderable{
	Tile[][] tilemap;
	public TileMap(){
		tilemap = new Tile[255][255];
	}
	Tile getTile(int x, int y){
		return tilemap[x][y];
	}
	Boolean isTileNotNull(int x, int y){
		if(tilemap[x][y] != null){
			return true;
		} else {
			return false;
		}
	}
	void setTile(int x, int y, Tile tile){
		tilemap[x][y] = tile;
	}
	public void draw(){
		GL11.glColor3f(255, 255, 255);
		GL11.glBegin(GL11.GL_QUADS);
		GL11.glVertex2f(0*32, 0*32);
		GL11.glVertex2f(0*32+32, 0*32);
		GL11.glVertex2f(0*32, 0*32+32);
		GL11.glVertex2f(0*32 + 32, 0*32 + 32);
		GL11.glEnd();
		
		Display.update();
	}
}